package com.yq.core.util;

import com.yq.api.qto.ProductQueryTO;
import com.yq.core.po.ProductQueryPO;
import org.springframework.beans.BeanUtils;

/**
 * Created by yq on 16-8-28.
 */
public class ProductQueryPOUtil {
    public static ProductQueryPO toProductQueryPO(ProductQueryTO productQueryTO) {
        if (productQueryTO == null) {
            return null;
        }
        ProductQueryPO productQueryPO = new ProductQueryPO();
        BeanUtils.copyProperties(productQueryTO, productQueryPO);
        return productQueryPO;
    }
}
